projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ad924b
)
Fix definition of `mode_t'.
author
Christoph Scholtes
<cschol2112@gmail.com>
Sat, 5 Nov 2011 17:16:01 +0000
(11:16 -0600)
committer
Christoph Scholtes
<cschol2112@gmail.com>
Sat, 5 Nov 2011 17:16:01 +0000
(11:16 -0600)
nt/config.nt
patch
|
blob
|
history
diff --git
a/nt/config.nt
b/nt/config.nt
index 0d8a2b49a7d9701927748daad76a1137398e6a7f..3a06a9f5b7a89dfe957f066b3b427658ba7292ef 100644
(file)
--- a/
nt/config.nt
+++ b/
nt/config.nt
@@
-345,11
+345,9
@@
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
# define restrict
#endif
-/* Define to `int' if <sys/types.h> does not define. */
-#ifdef __GNUC__
-/* No action required for gcc */
-#else /* MSVC */
-#define mode_t int
+/* `mode_t' is not defined for MSVC. Define. */
+#ifdef _MSC_VER
+typedef unsigned short mode_t;
#endif
/* A va_copy replacement for MSVC. */